<template>
  <web-view webstyles="p20" :src="protocolLink"></web-view>
</template>


<script>
const privacy = "https://static.kuaimayoupin.com/5324133728480027.html";
const service = "https://static.kuaimayoupin.com/7239829619077833.html";

export default {
  data() {
    return {
      protocol: "privacy",
    };
  },
  computed: {
    protocolLink() {
      return this.protocol === "privacy" ? privacy : service;
    },
  },
  onLoad: function (option) {
    console.log(option);
    this.protocol = option.type;
  },
};
</script>

<style scoped>
.p20 {
  padding: 0 20px;
}
</style>
